package com.unicom.auth.controller;

import java.util.List;

import com.unicom.auth.controller.base.BaseController;
import com.unicom.auth.controller.dto.MyAppJSON;
import com.unicom.auth.model.Role;
import com.unicom.auth.model.User;

public class RoleController extends BaseController {

	@Override
	public void index() {
		MyAppJSON<Role> appJSON = new MyAppJSON<Role>();
		List<Role> roles = Role.dao.findAll();
		appJSON.addItems(roles);
		renderJson(appJSON);
	}

}
